package com.ysynzehao.service.impl;

import com.ysynzehao.bean.order.Order;
import com.ysynzehao.dao.order.OrderRepository;
import com.ysynzehao.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * niuzehao
 * 2018/12/5 15:36.
 */
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderRepository orderRepository;

    @Override
    public List<Order> findAll() {
        return orderRepository.findAll();
    }
}
